class TimeRule::TimeSlot < TimeRule
  def validate_value?(params)
    start_time, end_time = value
    start_time_in, end_time_in = params['start_time'], params['end_time']
    start_time.to_i < end_time_in.to_i && end_time.to_i > start_time_in.to_i
  end
end
